package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 洪俊新
 * @date : 2021/3/9 11:55
 * @description:
 */
@ApiModel("书架书籍基本信息返回JSON类")
public class BookshelfBInformationRes {
    /**
     *主键
     * 书籍id
     * isnull 1
     */
    @ApiModelProperty(value="书籍id", position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String booksId;

    /**
     * 书籍名称
     * isnull 0
     */        @ApiModelProperty(value="书籍名称",position=2)
    private String bookName;
    /**
     *主键
     * 作者id
     * isnull 1
     */
    @ApiModelProperty(value="作者id", position=1)
    private String authorId;
    /**
     * 作者昵称
     * isnull 0
     */        @ApiModelProperty(value="作者昵称",position=8)
    private String authorName;
    /**
     * 书籍封面图片链接
     * isnull 0
     */        @ApiModelProperty(value="书籍封面图片链接",position=9)
    private String bookPic;
    /**
     * 最新更新的章节名称
     * isnull 0
     */        @ApiModelProperty(value="最新更新的章节名称",position=15)
    private String newChaptername;
    /**
     * 最新章节更新时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value="最新章节更新时间",position=16)
    private LocalDateTime newChapterUtime;

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getBooksId() {
        return booksId;
    }

    public void setBooksId(String booksId) {
        this.booksId = booksId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getBookPic() {
        return bookPic;
    }

    public void setBookPic(String bookPic) {
        this.bookPic = bookPic;
    }

    public String getNewChaptername() {
        return newChaptername;
    }

    public void setNewChaptername(String newChaptername) {
        this.newChaptername = newChaptername;
    }

    public LocalDateTime getNewChapterUtime() {
        return newChapterUtime;
    }

    public void setNewChapterUtime(LocalDateTime newChapterUtime) {
        this.newChapterUtime = newChapterUtime;
    }

    @Override
    public String toString() {
        return "BookshelfBInformationRes{" +
                "booksId='" + booksId + '\'' +
                ", bookName='" + bookName + '\'' +
                ", authorId='" + authorId + '\'' +
                ", authorName='" + authorName + '\'' +
                ", bookPic='" + bookPic + '\'' +
                ", newChaptername='" + newChaptername + '\'' +
                ", newChapterUtime=" + newChapterUtime +
                '}';
    }
}
